﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：MallWebSettingForTenantProvider.cs
// 功能描述：TongTongMall.MallWeb.Core
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TongTongMall.Configuration;

namespace TongTongMall.MallWeb.Core.Configuration
{
    public class MallWebSettingForTenantProvider : SettingProvider
    {
        public override IEnumerable<SettingDefinition> GetSettingDefinitions(SettingDefinitionProviderContext context)
        {
            return new[] {
                new SettingDefinition("PhoneVCodeMaxTimes","3",SettingScopes.Tenant),
                new SettingDefinition("DefaultGroupID","F13EB766-82A7-4877-8C32-8560DA36745E",SettingScopes.Tenant),
                new SettingDefinition("PhoneVCodeLength","6",SettingScopes.Tenant),
                //发送短信相关配置
                new SettingDefinition("MessageUrl","http://admin.sms9.net/houtai/sms.php",SettingScopes.Tenant),
                new SettingDefinition("MessageCPID","3418",SettingScopes.Tenant),
                new SettingDefinition("MessagePwd","ttongTong256",SettingScopes.Tenant),
                new SettingDefinition("MessageChannelID","2263",SettingScopes.Tenant),
                new SettingDefinition("VerCodeContent","您的验证码:{VerCode}",SettingScopes.Tenant),
                new SettingDefinition("MinIintervalTime","60",SettingScopes.Tenant),
                new SettingDefinition("MaxErrLoginTimes","3",SettingScopes.Tenant),
                new SettingDefinition("MaxValidTimes","5",SettingScopes.Tenant),
                new SettingDefinition("BackMessageUrl","https://sms.yunpian.com/v2/sms/single_send.json",SettingScopes.Tenant),
                new SettingDefinition("BackMessageApiKey","36e1db316afabc444c0af85910f6e789",SettingScopes.Tenant),

                new SettingDefinition("ErrLoginTime","15",SettingScopes.Tenant),
                new SettingDefinition("SmtpServer","smtp.exmail.qq.com",SettingScopes.Tenant),
                new SettingDefinition("FromAddress","tongtongmalldev@tongtongmall.com",SettingScopes.Tenant),
                new SettingDefinition("FromPassword","TTm1234",SettingScopes.Tenant),
                new SettingDefinition("DisplayName","通通优品",SettingScopes.Tenant),
                new SettingDefinition("Prot","25",SettingScopes.Tenant),
                new SettingDefinition("EnableSSL","0",SettingScopes.Tenant),
                new SettingDefinition("EmailTitle","通通优品验证码",SettingScopes.Tenant),
                new SettingDefinition("EmailVerCodeContent","【通通优品】您的验证码是{VerCode}",SettingScopes.Tenant),
                new SettingDefinition("ReceiptAdsCountLimit","100",SettingScopes.Tenant),
                new SettingDefinition("LimitTimes","3",SettingScopes.Tenant),
                new SettingDefinition("LimitTimesSomeTime","60",SettingScopes.Tenant),
                new SettingDefinition("Domain","tongtongmall.com",SettingScopes.Tenant),
                new SettingDefinition("OrderGroupMaxMoney","2000",SettingScopes.Tenant),


                //支付
                new SettingDefinition("MallName","通通优品_线上商城",SettingScopes.Tenant),
                new SettingDefinition("WeChatAuthCallBackUrl","http://m.tongtongmall.com/view/user/login.html",SettingScopes.Tenant),
                new SettingDefinition("PayCallBackUrl","http://m.tongtongmall.test/view/cart/paysuccess.html",SettingScopes.Tenant),
                new SettingDefinition("OrderNoPayAutoCloseTime","10",SettingScopes.Tenant),
                new SettingDefinition("OrderNoPayAutoNoticeTime","5",SettingScopes.Tenant),
                new SettingDefinition("H5MallUrl","http://m.tongtongmall.com/",SettingScopes.Tenant),
                new SettingDefinition("OrderNoPayAutoNoticeMsgContent","您有 1 笔未支付订单即将失效",SettingScopes.Tenant),
                new SettingDefinition("OrderPaySuccessPickUpSelfNoticeMsg","您已成功下单，提货码{0}，提货地址：{1}。客服电话0371-55356288-5666",SettingScopes.Tenant),

                //上传相关配置
                new SettingDefinition("UploadAccessKey","WQg2FaXgDUUMXi-LxuLhTQQ4cnCRGRHEFVZGtu47",SettingScopes.Tenant),
                new SettingDefinition("UploadSecretKey","z5LPdzqYv3bRJh4sV7wECZw22OL3lo0Dg_bTG-4z",SettingScopes.Tenant),
                new SettingDefinition("UploadScope","tongtongmall-test",SettingScopes.Tenant),
                new SettingDefinition("UploadReturnUrl","",SettingScopes.Tenant),
                new SettingDefinition("UploadReturnBody","",SettingScopes.Tenant),
                new SettingDefinition("UploadFSizeLimit","21474836480",SettingScopes.Tenant),
                new SettingDefinition("UploadDetectMime","0",SettingScopes.Tenant),
                new SettingDefinition("UploadMimeLimit","image/jpeg;image/png",SettingScopes.Tenant),
                //业务报警机器人
                new SettingDefinition("DingTalkRobToken","d35e2b77177fe7f5955ddb990c5ab87a440f7b6f5af43624439d781a011d6b39",SettingScopes.Tenant),
                new SettingDefinition("DingTalkRobUrl","https://oapi.dingtalk.com/robot/send?access_token={0}",SettingScopes.Tenant),
                new SettingDefinition("DingTalkRobswitch","0",SettingScopes.Tenant),
                //自动确认收货时间(以日为单位)
                new SettingDefinition("SkinOfflineUrl","",SettingScopes.Tenant),
                new SettingDefinition("searchRegexPattern",@"[\|,\$,\%,\&,\(,\),\x20-\x26,\x2c,\x2e,\x3a-\x40,\x5b-\x60,\x7b-\x7e,\x80-\xff,\u3000-\u3002,\u300a,\u300b,\u300e-\u3011,\u2014,\u2018,\u2019,\u201c,\u201d,\u2026,\u203b,\u25ce,\uff01-\uff5e,\uffe5]",SettingScopes.Tenant),
                //核销图片地址
                new SettingDefinition("VerifyImageUrl","http://This.is.Test.TT",SettingScopes.Tenant),
                //支付后的提示语(预售)
                new SettingDefinition("PaysucessedPresellMsg","提示：您订单中包含预售商品，被拆分成多个订单分开配送，进入订单列表查看详情",SettingScopes.Tenant ),
                //支付后的提示语(不同仓库)
                new SettingDefinition("PaysucessedDiffSendMsg","提示：您订单中的商品在不同仓库，被拆分成多个订单分开配送，进入订单列表查看详情" ,SettingScopes.Tenant),
                 new SettingDefinition("PrivilegeCardExpireMessage","嗨，您有{0}张通通优品优 惠券即将到期，请及时使用。详情登陆通通优品APP“我的优 惠券”查看，http://m.tongtongmall.com/download.html" ,SettingScopes.Tenant),
                //物流追踪提示语
                new SettingDefinition("LogisticsMsg","您的订单,此次由\"{0}\"进行配送,快递单号为{1},可前往{2}官网查询物流状态",SettingScopes.Tenant),
                //尾款支付短信提醒
                new SettingDefinition("PayFinalTimeOutMsg","【通通优品】您订购的商品“{0}”于 {1} 结束预售，您需要在预售结束后{2}小时内支付尾款，否则订单交易失败，且不退还定金",SettingScopes.Tenant),

            };
        }
    }
}
